package edu.berkeley.cs160.innovationers.shoppersidekick.db;



import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;

@PersistenceCapable 
public final class ListItemModel {
	public ListItemModel(String itemName, int quantity) {
		this.listItemName = itemName;
		this.quantity = quantity;
	}

	public String getItemName() {
		return this.listItemName;
	}

	public int getQuantity() {
		return this.quantity;
	}

	public void setQuantity(int quantity) {
		this.quantity = quantity;
	}
	
	public Key getKey() {
		return this.key;
	}
	
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Key key;
	
	@Persistent
	private String listItemName;
	
	@Persistent
	private int quantity;
}
